const express = require('express')
const router = express.Router()
const handler = require('./handler/activity')

// 获取优惠券列表
router.get('/activity/couponInfo/getData/:page/:limit', handler.getPageList)

// 根据id获取优惠券
router.get('/activity/couponInfo/get/:id', handler.getById)

// 更新优惠
router.put('/activity/couponInfo/update', handler.updateById)

// 新增优惠
router.post('/activity/couponInfo/save', handler.add)

// 删除优惠
router.delete('/activity/couponInfo/remove/:id', handler.removeById)

// 获取优惠券使用列表
router.get('/activity/couponInfo/couponUse/:page/:limit', handler.getPageCouponUseList)


module.exports = router
